package net.osweb.crm.modules.core.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Usersconfig entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "core_usersconfig")
public class UsersConfig implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 682304291019728514L;
	private Integer id;
	private Integer userid;
	private String name;
	private String value;
	private String description;
	private String configtype;
	private String comment;

	// Constructors

	/** default constructor */
	public UsersConfig() {
	}

	/** minimal constructor */
	public UsersConfig(String name, String value) {
		this.name = name;
		this.value = value;
	}

	/** full constructor */
	public UsersConfig(Integer userid, String name, String value,
			String description, String configtype, String comment) {
		this.userid = userid;
		this.name = name;
		this.value = value;
		this.description = description;
		this.configtype = configtype;
		this.comment = comment;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userid")
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "name", nullable = false, length = 64)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "value", nullable = false, length = 127)
	public String getValue() {
		return this.value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	@Column(name = "description")
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "configtype", length = 2)
	public String getConfigtype() {
		return this.configtype;
	}

	public void setConfigtype(String configtype) {
		this.configtype = configtype;
	}

	@Column(name = "comment")
	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}